//
//  ApiConfig.swift
//  Lease_IOS
//
//  Created by Mr.wang on 2018/12/20.
//  Copyright © 2018 Mr.wang. All rights reserved.
//

import Moya
import KeychainSwift

extension TargetType {
    
    var baseURL: URL {
        return URL(string: APPConfig.baseUrl)!
    }
    
    var method: Moya.Method {
        return .post
    }
    
    var sampleData: Data {
        return "".data(using: String.Encoding.utf8)!
    }
    
}
